import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

smallIconText(IconData? icon, String txt) {
  return [
    if (icon != null)
      Padding(
        padding: const EdgeInsets.only(right: 2),
        child: Icon(
          icon,
          color: Colors.grey,
          size: 12,
        ),
      ),
    Text(txt, style: const TextStyle(fontSize: 12, color: Colors.grey))
  ];
}

Widget buildTitle(String title, String desc) {
  return Row(
    children: [
      Text(
        title,
        style: const TextStyle(fontWeight: FontWeight.bold),
      ),
      const Padding(padding: EdgeInsets.only(left: 5)),
      Text(
        desc,
        style: const TextStyle(fontSize: 11, color: Colors.grey),
      )
    ],
  );
}
